package cn.eonshine.cuba.inf.modular.basic.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * ECC 公司表
 * </p>
 *
 * @author Alan
 * @since 2018-07-28
 */
@TableName("inf_ecc")
public class Ecc extends Model<Ecc> {

    private static final long serialVersionUID = 1L;

    /**
     * Company primary key 公司主键
     */
    @TableField(exist = false)
    private String id;
    /**
     * company short name 公司简称
     */
    private String name;
    /**
     * ECC code  机构编码
     */
    @TableId
    private String code;
    /**
     * ECC address 公司地址 
     */
    private String address;
    /**
     * zip 邮政编码
     */
    @TableField("zip_code")
    private String zipCode;
    /**
     * principal 负责人
     */
    private String master;
    /**
     * phone  电话
     */
    private String phone;
    /**
     * fax 传真
     */
    private String fax;
    /**
     * email address  邮箱地址
     */
    private String email;
    /**
     * Whether to enable 是否启用
     */
    private String useable;
    /**
     * longitude 经度
     */
    private BigDecimal longitude;
    /**
     * latitude 纬度
     */
    private BigDecimal latitude;
    /**
     * The company of the oil depot油库所属公司
     */
    @TableField("sub_depot_code")
    private String subDepotCode;
    /**
     * full name 公司全称
     */
    @TableField("full_name")
    private String fullName;
    /**
     * varchar 省
     */
    private String province;
    /**
     * creator 创建者
     */
    @TableField("create_by")
    private String createBy;
    /**
     * Create time 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * updater 更新者
     */
    @TableField("update_by")
    private String updateBy;
    /**
     * Update time 更新时间
     */
    @TableField("update_date")
    private Date updateDate;

    @TableField("lsms_update")
    private Integer lsmsUpdate;
    
    /**
     * Data input datetime 数据接口发送时间
     */
    @TableField("data_input_datetime")
    private Date dataInputDatetime;
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    public String getMaster() {
        return master;
    }

    public void setMaster(String master) {
        this.master = master;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUseable() {
        return useable;
    }

    public void setUseable(String useable) {
        this.useable = useable;
    }

    public BigDecimal getLongitude() {
        return longitude;
    }

    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }

    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }

    public String getSubDepotCode() {
        return subDepotCode;
    }

    public void setSubDepotCode(String subDepotCode) {
        this.subDepotCode = subDepotCode;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
    
    

    public Integer getLsmsUpdate() {
		return lsmsUpdate;
	}

	public void setLsmsUpdate(Integer lsmsUpdate) {
		this.lsmsUpdate = lsmsUpdate;
	}

	public Date getDataInputDatetime() {
		return dataInputDatetime;
	}

	public void setDataInputDatetime(Date dataInputDatetime) {
		this.dataInputDatetime = dataInputDatetime;
	}

	@Override
    protected Serializable pkVal() {
        return this.code;
    }
    
    @Override
    public String toString() {
        return "Ecc{" +
        ", id=" + id +
        ", name=" + name +
        ", code=" + code +
        ", address=" + address +
        ", zipCode=" + zipCode +
        ", master=" + master +
        ", phone=" + phone +
        ", fax=" + fax +
        ", email=" + email +
        ", useable=" + useable +
        ", longitude=" + longitude +
        ", latitude=" + latitude +
        ", subDepotCode=" + subDepotCode +
        ", fullName=" + fullName +
        ", province=" + province +
        ", createBy=" + createBy +
        ", createDate=" + createDate +
        ", updateBy=" + updateBy +
        ", updateDate=" + updateDate +
        "}";
    }
}
